package c.e.a.b.e.c;

import java.util.List;
import java.util.Objects;
import java.util.Vector;

/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
public final class j3 extends f3 {
    public final i3 a = new i3();

    public final void a(Throwable th, Throwable th2) {
        if (th2 != th) {
            Objects.requireNonNull(th2, "The suppressed exception cannot be null.");
            i3 i3Var = this.a;
            for (Object poll = i3Var.b.poll(); poll != null; poll = i3Var.b.poll()) {
                i3Var.a.remove(poll);
            }
            List list = (List) i3Var.a.get(new h3(th, null));
            if (list == null) {
                list = new Vector(2);
                List list2 = (List) i3Var.a.putIfAbsent(new h3(th, i3Var.b), list);
                if (list2 != null) {
                    list = list2;
                }
            }
            list.add(th2);
            return;
        }
        throw new IllegalArgumentException("Self suppression is not allowed.", th2);
    }
}
